export function createEditorInputProps(label) {
  return {
    type: "input",
    label,
  };
}

export function createEditorColorProps(label) {
  return {
    type: "color",
    label,
  };
}

export function createEditorSelectProps(label, options) {
  return {
    type: "select",
    label,
    options,
  };
}

export function createEditorTableProps(label, options) {
  return {
    type: "table",
    label,
    table: options,
  };
}

export function createTextProp(config) {
  return Object.assign(config, {
    type: "text",
  });
}

export function createColorProp(config) {
  return Object.assign(config, {
    type: "color",
  });
}
